package com.qiche.service2.impl;

import com.qiche.model.UserEvaluation2;
import com.qiche.service.impl.BaseService;
import com.qiche.service2.UserEvaluation2Service;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author chendezhi
 * @date 2018/4/8 14:44
 */
@Service
public class UserEvaluation2ServiceImpl extends BaseService<UserEvaluation2> implements UserEvaluation2Service {
    @Override
    public List<UserEvaluation2> selectByCardId(Long cardId) {
        Example example = new Example(UserEvaluation2.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andEqualTo("cardId",cardId);
        return selectByExample(example);
    }
}
